package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.pojo.EbookCategory;
import com.qf.pojo.EbookEntry;

import java.util.List;

public interface EntryService {

    PageInfo<EbookEntry> findByPage(Integer page, Integer size, String name);
    List<EbookCategory> findAllCategory();

//    Integer saveData(String title, String summary,
//                     String uploaduser, Date created,Integer categoryId);
    Integer saveData(EbookEntry ebookEntry);

    Integer updateData(EbookEntry ebookEntry);

    EbookEntry findById(Integer id);

    Integer deleteById(Integer id);

//    以下为测试缓存方法与项目无关
    void queryName();
    EbookEntry queryByName(Integer id);
}
